﻿using QFramework;

namespace HKTools.SimpleTask
{
    public class CMD_CompleteAppointTask : AbstractCommand
    {
        TaskQueueType taskQueueType;
        TaskType taskType;

        public CMD_CompleteAppointTask(TaskQueueType taskQueueType, TaskType taskType)
        {
            this.taskQueueType = taskQueueType;
            this.taskType = taskType;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_SimpleTaskSystem>().CompleteAppointTask(taskQueueType, taskType);
        }
    }
}